package com.rc.saas.tenant.vo.rc;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.rc.saas.tenant.base.BaseModel;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

@Getter
@Setter
public class RcOperatorAccountRecordData extends BaseModel {

    //运营商编号
    //private String tenantCode;

    //流水类型 '0充值 1支出 默认0'
    @NotNull(message = "流水类型不能为空")
    private String recordType;

    //摘要 '充值/加盟商结算/提成收益提现/支付成本手续费/手续费/退款'
    private String explains;

    //订单流水号
    private String orderNum;

    //来源 '0平台 1微信 默认0'
    private String recordSource;

    private BigDecimal amount;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date recordTime;

    @NotNull(message = "收款方ID不能为空")
    private Long entryId;

    private String entryName;

    //收款方类型 0平台 1个人用户 默认0
    private String entryType;

    private BigDecimal entryAccount;

    private String entryAccountNum;

    private String entryBank;

    @NotNull(message = "付款方ID不能为空")
    private Long outId;

    private String outName;

    //付款方类型 0平台 1个人用户 默认0
    private String outType;

    private BigDecimal outAccount;

    private String outAccountNum;

    private String outBank;

    private String status;

    private String remark;

    //private String createdBy;


}